<template>
    <div  class="category">
        <h3>{{title}}分类</h3>
        <ul>
            <li v-for="item in list" >{{item}}</li>
        </ul>
    </div>
</template>

<script>
    export default {
        name: 'Category',
        props:['title','list']
    }
</script>

<style scoped>
    .category {
        background-color: skyblue;
        width: 200px;
        height: 300px;
    }
    h3{
        background-color: orange;
        text-align: center;
    }

</style>